import Vue from 'vue'
import App from './App'

// vuex
import store from './store'

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
import jwx from '@/common/jwx'
Vue.prototype.$jwx = jwx


import mixin from './common/mixin'
import common from '@/common/common.js'
Vue.prototype.$baseUrl = 'http://xmswjjh.doit10019.com/Public/static/image/weixin/'
Vue.prototype.$noMultipleClicks = common.noMultipleClicks;

Vue.prototype.$store = store

Vue.config.productionTip = false

App.mpType = 'app'
Vue.use(uView)

// 挂载调试日志打印
Vue.prototype.$print_log = (...msg) => {
	if (process.env.NODE_ENV === 'development') {
		console.log(...msg);
	}
}

// #ifdef MP
// 引入uView对小程序分享的mixin封装
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// #endif

Vue.mixin(mixin)

const app = new Vue({
	store,
	...App
})

// 引入请求封装
require('./util/request/index')(app)

app.$mount()
